<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Menu></Menu>
        </el-aside>
        <el-main class="pad">
          <el-page-header @back="router.back" class="bg-[#fff]">
          </el-page-header>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import {ref} from 'vue'
import Menu from '@/components/Menu.vue'
import Header from '@/components/Header.vue'
import {useRouter} from 'vue-router'

const router=useRouter()
</script>

<style scoped>
.pad {
  padding: 0 !important;
  background-color: #eee;
}
</style>
